
{{template "base.html" .}}

{{define "content"}}
<script>
    $("#teacher-left-client").addClass("layui-this")//设置左侧导航栏
    var url = window.location.href;
    var to_Id = url.substring(url.lastIndexOf("/") + 1);
    $(document).ready(function () {
        $.ajax({
            method: "post",
            url: "/public/client/check/room",
            data:{
                uid1: getCookie("Id"),
                uid2: to_Id,
            },
            success: function(res) {
                if (res.code != 200) {
                    return false
                } else {
                    roomId = res.roomId
                    $(".iframe_msg").attr("src","http://127.0.0.1:8080/public/client")
                }
            },
        });
    })
</script>
<div style="width: 100%;height: 100%">
    <iframe class="iframe_msg" style="width: 100%;height: 100%;border: 0"></iframe>
</div>

{{end}}
